<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/include/taglibs.jsp"%>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-ui-1.8.17.custom.min.js"></script>

<script type="text/javascript" src="${pageContext.request.contextPath}/pmgr/css/jquery/i18n/jquery.ui.datepicker-ko.js"></script>

<link rel="stylesheet" href="${pageContext.request.contextPath}/pmgr/css/jquery/themes/ui-lightness/jquery.ui.all.css">
<style type="text/css">
/*  	.ui-datepicker{  */
/*  					font-size : 13px;  */
/*  					width : 230px;   */
/*  	}  */
/*  	.ui-datepicker select.ui-datepicker-month{  */
/*  					width:50%;    */
/*  					font-size: 13px;  */
				
/*  	}  */
/*  	.ui-datepicker select.ui-datepicker-year{  */
/*  					width:40%;       */
/*  					font-size: 13px;   */
				
/*  	}  */
/*   	.ui-datepicker-trigger{   */
/*   		vertical-align: middle;   */
/*   		padding-left: 3px;   */
/*   	}   */
</style>
<script type="text/javascript">

$(document).ready(function(){
	
});

//월있는지 확인하고 submit
function getData(){
	if($("#src_sdate").val()==""){
		alert("년도를 입력하세요");
		return false;
	}
	$("#sendData").submit();
}

</script>
<table width="800" border="0" cellspacing="1" cellpadding="2"
	class="class_admin_table_nocolor">
	<tr>
		<td height="25"><font color=brown>sms관리 ▶ 발송목록</font></td>
	</tr>
</table>
<br>

<form action="" id="sendData" method="get">

<select name="src_sdate" id="src_sdate" onchange="getData();" style="width: 100px">
	<option value="">전체</option>
<c:forEach var="i" begin="${startYYYY }" end="${endYYYY }">
	<option value='${i }' <c:if test="${param.src_sdate==i }">selected="selected"</c:if>>${i }</option>
 </c:forEach>
</select>년
<select name="src_edate" id="src_edate" onchange="getData();" style="width: 100px">
	<option value="">전체</option>
<c:forEach var="i" begin="1" end="12">
	<c:if test="${i>9 }">
	<option value='${i }' <c:if test="${param.src_edate==i }">selected="selected"</c:if>>${i }</option>
	</c:if>
	<c:if test="${i<=9 }">
		<c:set var="aaa" value="0${i }"/>
	<option value='${aaa }' <c:if test="${param.src_edate==aaa }">selected="selected"</c:if>>${i }</option>
	</c:if>
 </c:forEach>
</select>월
캠핑명 : <input name="src_val" value="${param.src_val }" type="text" />
<button>검색</button>
</form>

<table width="900" border="0" cellspacing="1" cellpadding="2"
	class="class_admin_table">
		<tr class="class_admin_table_head" height="25">
			<!--td align="center" width="10"><input type="checkbox" name="sms_all" onclick="select_all_no()"></td-->
			<td align="center" width="50">no</td>
			<td align="center" width="80">보낸이번호</td>
			<td align="center" width="80">보낸캠핑명</td>
			<td align="center" width="120">받는이번호</td>
			<td align="center">내용</td>
			<td align="center" width="80">발송일</td>
			<td align="center" width="40">성공</td>
			<!--td align="center" width="40">삭제</td-->
		</tr>
<c:if test="${list !=null && fn:length(list)>0 }">
	<c:forEach var="map" items="${list}" varStatus="status">
		<tr height="25" class="class_admin_table_blank">
			<td align="center">${paginationInfo.nowCnt - status.index}</td>
			<td align="center">${map.from_no }</td>
			<td align="center">${map.p_nm }</td>
			<td align="center">${map.to_no }</td>
			<td title="${map.sms_content }">${map.sms_content }</td>
			<td align="center">${map.reg_dt_n }</td>
			<td align="center" title="${map.c_msg }"><font color="#097dff">${map.c_msg }</font></td>
		</tr>
	</c:forEach>
</c:if>
</table>
<!--table>
		<tr>
			<td>체크한 항목 <input type="button" value="삭제" onclick="del_all(this.form)"></td>
		</tr>
		</table-->
<br>

${pageHtml }
